function syncAll(filename,freq_aq)

    workspaceus = ['.\Matlab_data\' filename '_US.mat'];
    load(workspaceus)
    workspacewm = ['.\Matlab_data\' filename '_WM.mat'];
    load(workspacewm)

    [SYNC_WM1,SYNC_WM2,SYNC_US1,SYNC_US2]=US_WM_sincronization(void_US1,void_WM1,void_US2,void_WM2,freq_aq,filename,'VF');
    void_WM1=SYNC_WM1;
    void_WM2=SYNC_WM2;
    void_US1=SYNC_US1;
    void_US2=SYNC_US2;

    [SYNC_WM1,SYNC_WM2,SYNC_US1,SYNC_US2]=US_WM_sincronization(void_US1,midle_electrode_void_WM1,void_US2,midle_electrode_void_WM2,freq_aq,filename,'VF2');
    midle_electrode_void_WM1=SYNC_WM1;
    midle_electrode_void_WM2=SYNC_WM2;
    midle_electrode_void_US1=SYNC_US1;
    midle_electrode_void_US2=SYNC_US2;

    [SYNC_WM1,SYNC_WM2,SYNC_US1,SYNC_US2]=US_WM_sincronization(waterlevel_US1,waterlevel_WM1,waterlevel_US2,waterlevel_WM2,freq_aq,filename,'WL');
    waterlevel_WM1=SYNC_WM1;
    waterlevel_WM2=SYNC_WM2;
    waterlevel_US1=SYNC_US1;
    waterlevel_US2=SYNC_US2;

    name_workspace = ['.\Matlab_data\' filename '_SYNC.mat'];
    save(name_workspace);               

end